import request from '@/utils/request'

// 查询订单改派列表
export function listRedirect(query) {
  return request({
    url: '/orders/redirect/list',
    method: 'get',
    params: query
  })
}

// 查询订单改派详细
export function getRedirect(redirectId) {
  return request({
    url: '/orders/redirect/' + redirectId,
    method: 'get'
  })
}

// 新增订单改派
export function addRedirect(data) {
  return request({
    url: '/orders/redirect',
    method: 'post',
    data: data
  })
}

// 修改订单改派
export function updateRedirect(data) {
  return request({
    url: '/orders/redirect',
    method: 'put',
    data: data
  })
}

// 删除订单改派
export function delRedirect(redirectId) {
  return request({
    url: '/orders/redirect/' + redirectId,
    method: 'delete'
  })
}
